package com.adaxi.adc.business.passengertrip.controller;

import com.adaxi.adc.business.passengertrip.pojo.AdcPassengerTrip;

import com.adaxi.adc.business.passengertrip.service.IHistoricalTripService;
import com.adaxi.adc.common.common.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HistoricalTripController {
    @Autowired
    IHistoricalTripService iHistoricalTripService;

    @GetMapping("/HistoricalTrip/{passengerId}")
    public CommonResult queryHistoricalTrip(String passengerId) {
        AdcPassengerTrip passengerTrip = iHistoricalTripService.getById(passengerId);
        return CommonResult.SUCCESS("查询成功",passengerTrip);
    }
}
